import request from '@/utils/request'

// 查询优秀作品列表
export function listThesis(query) {
  return request({
    url: '/Thesis/thesis/list',
    method: 'get',
    params: query
  })
}

// 查询优秀作品详细
export function getThesis(id) {
  return request({
    url: '/Thesis/thesis/' + id,
    method: 'get'
  })
}

// 新增优秀作品
export function addThesis(data) {
  return request({
    url: '/Thesis/thesis',
    method: 'post',
    data: data
  })
}

// 修改优秀作品
export function updateThesis(data) {
  return request({
    url: '/Thesis/thesis',
    method: 'put',
    data: data
  })
}

// 删除优秀作品
export function delThesis(id) {
  return request({
    url: '/Thesis/thesis/' + id,
    method: 'delete'
  })
}
